<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>采购入库明细</title>
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">

		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/date1.js"></script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				采购入库明细
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form theme="simple">
				<div id="info_main">
					<!-- 查询栏 -->

					<div id="info_input">
						<hr>
						<table>
							<tr>
								<td width="60px">
									红蓝字
								</td>
								<td width="130px">
									<s:if test="stockInStorageDTO.stockInStorage.tag == 1">
										<s:textfield value="蓝字" size="12" readonly="true"></s:textfield>
									</s:if>
									<s:else>
										<s:textfield value="红字" size="12" readonly="true"></s:textfield>
									</s:else>
								</td>
								<td width="60px">
									供应商(*)
								</td>
								<td width="130px">
									<s:textfield name="stockInStorageDTO.supplier.supplierName"
										size="12" readonly="true"></s:textfield>
								</td>
								<td width="50px">
									日期(*)
								</td>
								<td width="130px">
									<s:textfield
										name="stockInStorageDTO.stockInStorage.inStorageDate"
										size="12" readonly="true"></s:textfield>
								</td>
								<td width="30px">
									编号
								</td>
								<td width="130px">
									<s:textfield
										name="stockInStorageDTO.stockInStorage.inStorageCode"
										size="12" readonly="true"></s:textfield>
								</td>
								<td width="74px">
									源单类型(*)
								</td>
								<td width="130px">
									<s:if
										test="stockInStorageDTO.stockInStorage.sourceBillType == 0">
										<s:textfield value="无源单" size="12" readonly="true"></s:textfield>
									</s:if>
									<s:elseif
										test="stockInStorageDTO.stockInStorage.sourceBillType == 1">
										<s:textfield value="采购订单" size="12" readonly="true"></s:textfield>
									</s:elseif>
									<s:elseif
										test="stockInStorageDTO.stockInStorage.sourceBillType == 2">
										<s:textfield value="采购发票" size="12" readonly="true"></s:textfield>
									</s:elseif>
									<s:elseif
										test="stockInStorageDTO.stockInStorage.sourceBillType == 3">
										<s:textfield value="蓝字采购入库单" size="12" readonly="true"></s:textfield>
									</s:elseif>
								</td>
							</tr>
							<tr>

								<td>
									采购方式(*)
								</td>
								<td>
									<s:if test="stockInStorageDTO.stockInStorage.stockWay == 1">
										<s:textfield value="现购" size="12" readonly="true"></s:textfield>
									</s:if>
									<s:else>
										<s:textfield value="赊购" size="12" readonly="true"></s:textfield>
									</s:else>
								</td>

								<td>
									保管
								</td>
								<td>
									<s:textfield name="stockInStorageDTO.protector.candiateName"
										size="12" readonly="true"></s:textfield>
								</td>
								<td>
									主管
								</td>
								<td>
									<s:textfield name="stockInStorageDTO.manager.candiateName"
										size="12" readonly="true"></s:textfield>
								</td>
								<td>
									部门
								</td>
								<td>
									<s:textfield name="stockInStorageDTO.department.departmentName"
										size="12" readonly="true"></s:textfield>
								</td>
								<td>
									验收
								</td>
								<td>
									<s:textfield name="stockInStorageDTO.acceptancer.candiateName"
										size="12" readonly="true"></s:textfield>
								</td>
							</tr>
							<tr>

								<td>
									业务员
								</td>
								<td>
									<s:textfield name="stockInStorageDTO.businesser.candiateName"
										size="12" readonly="true"></s:textfield>
								</td>
								<td>
									摘要
								</td>
								<td colspan="4">
									<s:textfield name="stockInStorageDTO.stockInStorage.remark"
										size="40" readonly="true"></s:textfield>
								</td>
							</tr>
						</table>
						<hr>
					</div>
					<!-- 信息显示栏 -->
					<div id="info_info4">
						<table id="info_table" width="1780px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead id="head">
								<tr>
									<th width="100px">
										物料代码(*)
									</th>
									<th width="100px">
										物料名称
									</th>
									<th width="100px">
										规格型号
									</th>
									<th width="100px">
										收料仓库(*)
									</th>

									<th width="80px">
										批号
									</th>
									<th width="90px">
										单位(*)
									</th>
									<th width="90px">
										基本单位
									</th>
									<th width="60px">
										单价
									</th>
									<th width="90px">
										应收数量
									</th>
									<th width="120px">
										基本单位应收数量
									</th>
									<th width="90px">
										实收数量
									</th>
									<th width="120px">
										基本单位实收数量
									</th>
									<th width="50px">
										金额
									</th>
									<th width="120px">
										备注
									</th>
									<th width="100px">
										采购日期
									</th>
									<th width="80px">
										保质期(天)
									</th>
									<th width="110px">
										有效期至
									</th>
									<th width="90px">
										源单单号
									</th>
									<th width="100px">
										订单单号
									</th>
									<th width="90px">
										开票数量
									</th>
									<th width="120px">
										基本单位开票数量
									</th>
									<th width="100px">
										已领料数量
									</th>
									<th width="100px">
										父单单号
									</th>
								</tr>
							</thead>
							<tbody id="mbody">
								<s:iterator value="stockInStorageDetailDTOList">
									<tr>
										<td>
											<s:property value="material.materialCode" />
										</td>
										<td>
											<s:property value="material.materialName" />
										</td>
										<td>
											<s:property value="material.spec" />
										</td>
										<td>
											<s:property value="storage.storageName" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.materialNO" />
										</td>
										<td>
											<s:property value="measureUnit.measureUnitName" />
										</td>
										<td>
											<s:property value="material.basicMeasureUnit" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.unitPrice" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.shouldAmount" />
										</td>
										<td>
											<s:property
												value="stockInStorageDetail.basicUnitShouldAmount" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.factAmount" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.basicUnitFactAmount" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.money" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.remark" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.inStorageDate" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.inStoreLife" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.validationDate" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.sourceBillCode" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.sourceOrderCode" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.ticketAmount" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.baiscTicketAmount" />
										</td>
										<td>
											<s:property value="stockInStorageDetail.fetchOutAmout" />
										</td>

										<td>
											<s:property value="stockInStorageDetail.superStockCode" />
										</td>
									</tr>
								</s:iterator>
							</tbody>
							<tfoot>
								<tr>

								</tr>
							</tfoot>
						</table>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
					<div style="margin: 6px; text-align: center;">
						<input type="button" value="返回" onClick="history.go(-1)"
							onFocus="this.blur()" onMouseOver="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" value="复制" onClick="" onFocus="this.blur()"
							onMouseOver="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
					</div>
				</div>
			</s:form>
		</div>

	</body>
</html>
